<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" import="com.scs.model.*,java.util.List"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看历史订单信息</title>
<link href="../css/table.css" rel="stylesheet" type="text/css" />
<link href="../css/font.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="90%" border="1" cellspacing="0" cellpadding="0" align="center">
  <tr height="40">
    <td align="center" class="style2">查看订单信息
    </td>
  </tr>
  <tr>
    <td valign="top" align="center">
    <table width="100%"  border="0" cellpadding="1" cellspacing="1">
  <tr class="font2">
    <td width="7%" class="style1">周期</td>
    <td width="12%" align="left" class="style1">产品名称</td>
    <td width="7%" class="style1">上游</td>
    <td width="10%" class="style1">订单数</td>
    <td width="14%" class="style1">报价</td>
    <td width="13%" class="style1">发货数量</td>
    <td width="14%" class="style1">到货时间</td>
    <td width="16%" class="style1">状态</td>
    </tr>
  <s:if test="#request.orders.size==0">
  <tr>
  	<td colspan="8" align="center">您当前无订单信息</td>
  </tr>
  </s:if>  
  <s:else>    
 <s:iterator value="#request.orders" var="o">
  <tr>
    <td class="style1"><s:property value="#o.currentime.currentime"/></td>
    <td align="left" class="style2">Macbook</td>
    <td class="style2"><s:property value="#o.oto"/></td>
    <td class="style2"><s:property value="#o.countp1"/></td>
    <td class="style2"><s:property value="#o.p1price"/>
      元</td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime == (#o.currentime.currentime +1)">
    		<s:property value="#b.countp1"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">
    		<s:property value="#b.receivetime"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
    <td class="style2">
    	 <s:iterator value="#request.bills" var="b" status="st"> 
    		<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">处理完成 </s:if>
    	 </s:iterator>
    	 <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">尚未处理</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">尚未处理</s:if>
    </td>
  </tr>
  
  
  <tr>
    <td class="style1"><s:property value="#o.currentime.currentime"/></td>
    <td align="left" class="style2">Iphone</td>
    <td class="style2"><s:property value="#o.oto"/></td>
    <td class="style2"><s:property value="#o.countp2"/></td>
    <td class="style2"><s:property value="#o.p2price"/>
      元</td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime == (#o.currentime.currentime +1)">
    		<s:property value="#b.countp2"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">
    		<s:property value="#b.receivetime"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
     <td class="style2">
    	 <s:iterator value="#request.bills" var="b" status="st"> 
    		<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">处理完成 </s:if>
    	 </s:iterator>
    	 <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">尚未处理</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">尚未处理</s:if>
    </td>
  </tr>
  
  
  
  <tr class="font3">
    <td class="style1"><s:property value="#o.currentime.currentime"/></td>
    <td align="left" class="style2">Ipad</td>
    <td class="style2"><s:property value="#o.oto"/></td>
    <td class="style2"><s:property value="#o.countp3"/></td>
    <td class="style2"><s:property value="#o.p3price"/>
      元</td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime == (#o.currentime.currentime +1)">
    		<s:property value="#b.countp3"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
    <td class="style2">
      <s:iterator value="#request.bills" var="b"> 
    	<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">
    		<s:property value="#b.receivetime"/>
    	</s:if>
     </s:iterator>
      <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">0</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">0</s:if>
    </td>
     <td class="style2">
    	 <s:iterator value="#request.bills" var="b" status="st"> 
    		<s:if test="#b.currentime.currentime ==#o.currentime.currentime+1">处理完成 </s:if>
    	 </s:iterator>
    	 <s:elseif test="#o.currentime.currentime == current&&(#b.currentime.currentime == current-1||#b.currentime.currentime == current)">尚未处理</s:elseif>
    	 <s:if test="#request.bills.get(#request.bills.size-1).currentime.currentime ==current-1&&#o.currentime.currentime == current -1">尚未处理</s:if>
    </td>
  </tr>
  
  </s:iterator>
  </s:else>
</table>
    </td>
  </tr>
</table>
<br />
</body>
</html>